<include file="Common/header" />
<title>会员列表</title>
</head>
<body>
<nav class="breadcrumb">
	<i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 会员管理
	<span class="c-gray en">&gt;</span> 会员列表
	<a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" >
		<i class="Hui-iconfont">&#xe68f;</i>
	</a>
</nav>
<div class="pd-20">
	<div class="panel panel-primary">
		<div class="panel-header">按条件查询</div> 
		<div class="panel-body">
			选择分店：<span class="select-box radius" style="width: 120px;">
				<select class="select" size="1" name="shopid" id="shopid">
					<option value="0">全部</option>
					<?php if(count($shoplist)) foreach($shoplist as $sp){ ?>
					<option value="{$sp['shop_id']}">{$sp['title']}</option>
					<?php } ?>
				</select>
			</span>
			姓名：<input class="input-text radius" id="nickname" name="nickname" style="width: 100px; " />
			状态：<span class="select-box radius" style="width: 80px;">
				<select class="select" size="1" name="visible" id="visible">
					<option value="all">全部</option>
					<option value="1">使用</option>
					<option value="0">禁用</option>
				</select>
			</span>
			<a href="javascript:;" class="btn btn-success radius querys"><i class="Hui-iconfont">&#xe709;</i> 查询</a> 
		</div>
	</div>
</div>

<div class="pd-20">
	<div class="cl pd-5 bg-1 bk-gray"> 
		<span class="l"> 
			<a class="btn btn-primary radius" href="javascript:;" onclick="admin_role_add('员工录入','admin_add.html','1020', '500')"><i class="Hui-iconfont">&#xe600;</i> 员工录入</a>
		</span>
		<span class="r">
			共计：<strong>{$count}</strong> 条
		</span>
	</div>
	<div class="dataTables_wrapper no-footer" id="ajaxDiv">
		<include file="Member/adminlist_list" />
	</div>
</div>

<script type="text/javascript">
	/*管理员-角色-添加*/
	function admin_role_add(title,url,w,h){
		layer_show(title,url,w,h);
	}
	/*管理员-角色-编辑*/
	function admin_role_edit(title,url,id,w,h){
		layer_show(title,url,w,h);
	}
	
	$(document).ready(function(){
		//按条件查询
		$(".querys").on('click', function(){
			var load = layer.load(2);
			var where = {};
				where.shopid = $("#shopid").val();
				where.nickname = $("#nickname").val();
				where.ajax = 1;
				where.visible = $("#visible").val();
			$.get('adminlist.html', where, function(data){
				layer.close(load);
				$("#ajaxDiv").html(data);
			});
		});
	});
</script>
</body>
</html>